package top.cardone.context.action;

import lombok.Setter;
import lombok.extern.log4j.Log4j2;
import top.cardone.core.util.action.Action0;

/**
 * Created by yao hai tao on 2016/4/18.
 */
@Log4j2
public class Actions implements Action0 {
	@Setter
	private Action0[] actions;

	@Override
	public void action() {
		for (Action0 action : actions) {
			try {
				action.action();
			} catch (Exception e) {
				log.error(e.getMessage(), e);
			}
		}
	}
}
